package chemical_formula.val;

import java.util.ArrayList;
import java.util.List;

public class FormulaNode implements AST {
    public int count;
    public List<TermNode> termList = new ArrayList<>();

    public FormulaNode() {
        this.count = 1;
    }

    public void add(TermNode termNode) {
        termList.add(termNode);
    }

    public void setCount(int count) {
        this.count = count;
    }
}
